SMAHA03300_사업장관리[일반건진].xrw 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAHB00500.xrw
  4. * 설 명 : 종합건진 사업장(계약처)관리
  5. * 설 계 자 : 손주연
  6. * 작 성 자 : 손주연
  7. * 작 성 일 : 2007.03.13
  8. * 수정이력 : 2007.10.04 김다영 화면권한추가
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  13. <xhtml:head>
  14. <xhtml:title>사업장(계약처)관리</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <cmpyinfo>
  20. <cmpyinfodetl>
  21. <item>
  22. <cmpyid/>
  23. <cmpynm/>
  24. <appyear/>
  25. <civilaplflag/>
  26. <cmpystat>Y</cmpystat>
  27. <insucorpbrchcd/>
  28. <insucorpbrchnm/>
  29. <remcnts/>
  30. </item>
  31. <bizlst>
  32. <bizoffccd/>
  33. <bizoffcnm/>
  34. <cmpyno/>
  35. <totlabrmancnt/>
  36. <totlabrwomcnt/>
  37. <totlabrcnt/>
  38. <tottrgtmancnt/>
  39. <tottrgtwomcnt/>
  40. <tottrgtcnt/>
  41. <officertrgtmancnt/>
  42. <officertrgtwomcnt/>
  43. <officertrgtcnt/>
  44. <nonofficertrgtmancnt/>
  45. <nonofficertrgtwomcnt/>
  46. <nonofficertrgtcnt/>
  47. <minilabrcd/>
  48. <minilabrnm/>
  49. <inducsid/>
  50. <biztype/>
  51. <biztypenm/>
  52. <miltrcntrhospcd/>
  53. <miltrcntrhospnm/>
  54. <prsdnm/>
  55. <prsdrrgstno1/>
  56. <prsdrrgstno2/>
  57. <telno/>
  58. <zipcd1/>
  59. <zipcd2/>
  60. <zipcdseq/>
  61. <addr/>
  62. <detladdr/>
  63. <bizoffcstat/>
  64. </bizlst>
  65. </cmpyinfodetl>
  66. <deptlst>
  67. <item>
  68. <bizoffccd/>
  69. <bizoffcnm/>
  70. <deptcd/>
  71. <deptnm/>
  72. <deptstat/>
  73. </item>
  74. </deptlst>
  75. <cmpyinfolst>
  76. <item>
  77. <appyear/>
  78. <cmpyid/>
  79. <cmpynm/>
  80. <insucorpbrchcd/>
  81. <insucorpbrchnm/>
  82. <civilaplflag/>
  83. <cmpystat/>
  84. <remcnts/>
  85. </item>
  86. </cmpyinfolst>
  87. </cmpyinfo>
  88. </main>
  89. <send>
  90. <srchcmpyid/>
  91. <srchcmpynm/>
  92. <srchappyear/>
  93. <cmpyinfo>
  94. <appyear/>
  95. <cmpyid/>
  96. <cmpynm/>
  97. <insucorpbrchcd/>
  98. <insucorpbrchnm/>
  99. <civilaplflag/>
  100. <cmpystat/>
  101. <remcnts/>
  102. </cmpyinfo>
  103. <save>
  104. <bizinfo/>
  105. <deptinfo/>
  106. </save>
  107. </send>
  108. <init>
  109. <baseinfo>
  110. <yearlist/>
  111. </baseinfo>
  112. </init>
  113. <hidden>
  114. <cmpyinfodetl>
  115. </cmpyinfodetl>
  116. </hidden>
  117. <temp>
  118. <exeinfo/>
  119. </temp>
  120. </root>
  121. </instance>
  122. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  123. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  124. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  125. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  126. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  127. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  128. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  129. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  130. <script type="javascript" ev:event="xforms-ready">
  131. <![CDATA[
  132. fInitScreen();
  133. fGetBaseInfo();
  134. fInitSrch();
  135. btn_search.dispatch("DOMActivate");
  136. model.refresh();
  137. ]]>
  138. </script>
  139. <submission id="TRAHA00001"/>
  140. <submission id="TRAHA03300" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/cmpyinfo/cmpyinfolst"/>
  141. <submission id="TRAHA03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cmpyinfo" replace="instance" resultref="/root/hidden/cmpyinfodetl"/>
  142. <submission id="TRAHA03302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cmpyinfo" replace="instance" resultref="/root/main/cmpyinfo/deptlst"/>
  143. <submission id="TXAHA03300" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/temp/exeinfo"/>
  144. </model>
  145. <script type="javascript">
  146. <![CDATA[
  147. /********************************************************************************************************************************************************************
  148. * 화면을 초기화
  149. *********************************************************************************************************************************************************************/
  150. function fInitScreen() {
  151. // 인스턴스 초기화
  152. model.resetInstanceNode("/root/main/cmpyinfo/cmpyinfodetl/item"); // 사업체
  153. model.removeNodeset("/root/main/cmpyinfo/cmpyinfodetl/bizlst"); // 영업소
  154. model.removeNodeset("/root/main/cmpyinfo/deptlst/item"); // 부서
  155. model.resetInstanceNode("/root/send/cmpyinfo");
  156. model.resetInstanceNode("/root/send/save");
  157. // 초기화 셋팅
  158. var cur_year = getNewDate().getFullYear();
  159. model.setValue(cmb_appyear.attribute("ref") , cur_year );
  160. model.setValue(cmb_cmpystat.attribute("ref") , "Y" );
  161. // 컨트롤 초기화
  162. ipt_cmpycd.disabled = false;
  163. btn_newsave.disabled = false;
  164. btn_save.disabled = true;
  165. btn_del.disabled = true;
  166. model.refresh();
  167. }
  168. /********************************************************************************************************************************************************************
  169. * 기본공통 코드 정보를 조회한다.
  170. *********************************************************************************************************************************************************************/
  171. function fGetBaseInfo(){
  172. // 2015/01/09 년도를 기준자료료 관리 하도록 프로그램 수정(S900)
  173. healGetCodeList( new Array("S900"), new Array("/root/init/baseinfo/yearlist"));
  174. }
  175. /********************************************************************************************************************************************************************
  176. * 조회화면 초기화
  177. *********************************************************************************************************************************************************************/
  178. function fInitSrch() {
  179. var cur_year = getNewDate().getFullYear();
  180. model.setValue(cmb_srchappyear.attribute("ref") , cur_year );
  181. }
  182. /********************************************************************************************************************************************************************
  183. * 조회한 사업체 리스트를 조회한다.
  184. *********************************************************************************************************************************************************************/
  185. function fGetCmpyList() {
  186. submit("TRAHA03300");
  187. }
  188. /********************************************************************************************************************************************************************
  189. * 선택한 사업체 정보를 조회한다.
  190. *********************************************************************************************************************************************************************/
  191. function fGetCmpyInfo() {
  192. var node = null;
  193. model.resetInstanceNode("/root/hidden/cmpyinfodetl/item");
  194. model.removeNodeset("/root/hidden/cmpyinfodetl/bizlst");
  195. if(submit("TRAHA03301",false)) {
  196. node = model.instance1.selectSingleNode("/root/hidden/cmpyinfodetl/item");
  197. if(node != null) {
  198. model.removeNodeset(grd_deptlst.nodeset);
  199. model.copyNode("/root/main/cmpyinfo/cmpyinfodetl", "/root/hidden/cmpyinfodetl");
  200. ipt_cmpycd.disabled = true;
  201. btn_newsave.disabled = true;
  202. btn_save.disabled = false;
  203. btn_del.disabled = false;
  204. grd_bizlst.clearStatus();
  205. grd_deptlst.clearStatus();
  206. }else {
  207. model.setValue("/root/main/cmpyinfo/cmpyinfodetl/item/cmpyid" , ipt_cmpycd.currentText);
  208. }
  209. }
  210. model.refresh();
  211. }
  212. /********************************************************************************************************************************************************************
  213. * 사업체 영업소의 부서정보를 조회한다.
  214. *********************************************************************************************************************************************************************/
  215. function fGetCmpyBizDeptList() {
  216. submit("TRAHA03302");
  217. }
  218. /********************************************************************************************************************************************************************
  219. * 사업체,영업소,부서 정보 등록,수정,삭제 한다.
  220. *********************************************************************************************************************************************************************/
  221. function fSaveCmpyInfo(vMode) {
  222. if(vMode == "" || vMode == null) return;
  223. var exeChk = true;
  224. var cmpyId = model.getValue("/root/main/cmpyinfo/cmpyinfodetl/item/cmpyid");
  225. var appYear = model.getValue("/root/main/cmpyinfo/cmpyinfodetl/item/appyear");
  226. // 사업체 ID
  227. if(cmpyId == "") {
  228. messageBox("사업장관리번호를" , "C001");
  229. return;
  230. }
  231. // 사업체명
  232. if(model.getValue("/root/main/cmpyinfo/cmpyinfodetl/item/cmpynm") == "") {
  233. messageBox("사업장명을" , "C001");
  234. return;
  235. }
  236. // 적용년도
  237. if(appYear == "") {
  238. messageBox("적용년도를" , "C002");
  239. return;
  240. }
  241. // 민원실구분
  242. if(model.getValue("/root/main/cmpyinfo/cmpyinfodetl/item/civilaplflag") == "") {
  243. messageBox("민원실 구분을" , "C002");
  244. return;
  245. }
  246. // 건강보험지사
  247. if(model.getValue("/root/main/cmpyinfo/cmpyinfodetl/item/insucorpbrchcd") == "") {
  248. messageBox("건강보험지사 코드를" , "C001");
  249. return;
  250. }
  251. // 영업소 체크
  252. for(var i=2; i < grd_bizlst.rows; i++) {
  253. if(grd_bizlst.valueMatrix( i , grd_bizlst.colRef("bizoffccd")) == "") {
  254. messageBox("영업소코드를" , "C001");
  255. exeChk = false;
  256. break;
  257. }
  258. if(grd_bizlst.valueMatrix( i , grd_bizlst.colRef("bizoffcnm")) == "") {
  259. messageBox("영업소명을" , "C001");
  260. exeChk = false;
  261. break;
  262. }
  263. /* 사업자 등록번호 필수요건에서 제외 2009년 6월 12일 심승욱
  264. if(grd_bizlst.valueMatrix(i , grd_bizlst.colRef("cmpyno")) == "") {
  265. messageBox("사업등록번호를" , "C001");
  266. exeChk = false;
  267. break;
  268. }
  269. */
  270. }
  271. // 부서 체크
  272. for(var j=1; j < grd_deptlst.rows; j++) {
  273. if(grd_deptlst.valueMatrix(j , grd_deptlst.colRef("bizoffccd")) == "") {
  274. messageBox("영업소코드가" , "I004");
  275. exeChk = false;
  276. break;
  277. }
  278. if(grd_deptlst.valueMatrix(j , grd_deptlst.colRef("deptcd")) == "") {
  279. messageBox("부서코드를" , "C001");
  280. exeChk = false;
  281. break;
  282. }
  283. }
  284. if(exeChk == false) return;
  285. if(vMode == "i" || vMode == "i") {
  286. if( messageBox("사업장 정보를", "Q002") != 6 ) return ;
  287. }else if(vMode == "d") {
  288. if( messageBox("사업장 정보를", "Q001") != 6 ) return ;
  289. }
  290. model.copyNode("/root/send/save" , "/root/main/cmpyinfo/cmpyinfodetl/item" );
  291. model.makeValue("/root/send/save/mode" , vMode);
  292. model.makeValue("/root/send/save/bizinfo" , getGridUpdateData(grd_bizlst));
  293. model.makeValue("/root/send/save/deptinfo" , getGridUpdateData(grd_deptlst));
  294. if(submit("TXAHA03300")) {
  295. if(vMode == "d") {
  296. fInitScreen();
  297. }
  298. fGetCmpyInfo();
  299. fGetCmpyList();
  300. }
  301. }
  302. /********************************************************************************************************************************************************************
  303. * 그리드의 행을 추가하고 추가된 행을 리턴한다.
  304. *********************************************************************************************************************************************************************/
  305. function fAddGrdReturnRow(vGrd) {
  306. vGrd.addRow();
  307. return vGrd.rows - 1;
  308. }
  309. /********************************************************************************************************************************************************************
  310. * 그리드의 행이 버튼 선택 했을경우 update 상태로 변경
  311. *********************************************************************************************************************************************************************/
  312. function fSetGrdUpdate(vGrd,vRow) {
  313. if(vGrd.rowStatus(vRow) == 0 ) {
  314. vGrd.rowStatus(vRow) = 2;
  315. }
  316. }
  317. ]]>
  318. </script>
  319. </xhtml:head>
  320. <xhtml:body guideline="1,1194;2,58;2,750;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  321. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  322. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">사업장정보</caption>
  323. </group>
  324. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  325. <button id="btn_clear" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  326. <caption>초기화</caption>
  327. <script type="javascript" ev:event="DOMActivate">
  328. <![CDATA[
  329. fInitScreen();
  330. ]]>
  331. </script>
  332. </button>
  333. <button id="btn_del" class="btn4_letter2" style="left:1067px; top:5px; width:56px; height:22px; ">
  334. <caption>삭제</caption>
  335. <script type="javascript" ev:event="DOMActivate">
  336. <![CDATA[
  337. fSaveCmpyInfo("d");
  338. ]]>
  339. </script>
  340. </button>
  341. <button id="btn_save" class="btn4_letter2" style="left:1009px; top:5px; width:56px; height:22px; ">
  342. <caption>저장</caption>
  343. <script type="javascript" ev:event="DOMActivate">
  344. <![CDATA[
  345. fSaveCmpyInfo("u");
  346. ]]>
  347. </script>
  348. </button>
  349. <button id="btn_newsave" class="btn4_letter4" style="left:924px; top:5px; width:58px; height:22px; ">
  350. <caption>신규생성</caption>
  351. <script type="javascript" ev:event="DOMActivate">
  352. <![CDATA[
  353. fSaveCmpyInfo("i");
  354. ]]>
  355. </script>
  356. </button>
  357. </group>
  358. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1194px; height:744px; ">
  359. <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  360. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  361. <caption id="caption14" class="search_name" style="left:250px; top:8px; width:100px; height:17px; ">사업장코드 :</caption>
  362. <button id="btn_search" class="btn1_letter2" style="left:1122px; top:7px; width:56px; height:22px; ">
  363. <caption>조회</caption>
  364. <script type="javascript" ev:event="DOMActivate">
  365. <![CDATA[
  366. fGetCmpyList();
  367. ]]>
  368. </script>
  369. </button>
  370. <line id="line16" style="x1:1106px; y1:7px; x2:1106px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  371. <input id="ipt_srchcmpycd" ref="/root/send/srchcmpyid" class="input_search" imemode="alpha" _chartype="upper" style="left:355px; top:8px; width:100px; height:19px; ">
  372. <script type="javascript" ev:event="onkeyup">
  373. <![CDATA[
  374. inputEnterKey("btn_search","DOMActivate");
  375. ]]>
  376. </script>
  377. </input>
  378. <caption id="caption3" class="search_name" style="left:470px; top:8px; width:86px; height:17px; ">사업장명 :</caption>
  379. <input id="ipt_srchcmpynm" ref="/root/send/srchcmpynm" class="input_search" style="left:560px; top:8px; width:290px; height:19px; ">
  380. <script type="javascript" ev:event="onkeyup">
  381. <![CDATA[
  382. inputEnterKey("btn_search","DOMActivate");
  383. ]]>
  384. </script>
  385. </input>
  386. <caption id="caption4" class="search_name" style="left:5px; top:8px; width:100px; height:17px; ">적용년도 :</caption>
  387. </group>
  388. <output id="opt_insucorpbrchnm" ref="/root/main/cmpyinfo/cmpyinfodetl/item/insucorpbrchnm" class="output_fix" style="left:225px; top:332px; width:365px; height:19px; "/>
  389. <input id="ipt_insucorpbrchcd" ref="/root/main/cmpyinfo/cmpyinfodetl/item/insucorpbrchcd" class="input_default" navindex="6" style="left:99px; top:332px; width:100px; height:19px; ">
  390. <script type="javascript" ev:event="onkeyup">
  391. <![CDATA[
  392. inputEnterKey("btn_selinsucorpbrchcd", "DOMActivate");
  393. ]]>
  394. </script>
  395. </input>
  396. <button id="button3" class="btn2_letter3" style="left:1130px; top:385px; width:53px; height:19px; ">
  397. <caption>행삭제</caption>
  398. <script type="javascript" ev:event="DOMActivate">
  399. <![CDATA[
  400. deleteSelectedRows(grd_bizlst,true);
  401. ]]>
  402. </script>
  403. </button>
  404. <caption id="caption51" class="tit_2" style="left:5px; top:287px; width:82px; height:13px; ">사업체정보</caption>
  405. <caption id="caption52" class="cell_1" style="left:5px; top:331px; width:91px; height:23px; vertical-align:middle; ">건강보험지사</caption>
  406. <line id="line34" class="line_2" style="x1:5px; y1:329px; x2:1185px; y2:329px; "/>
  407. <caption id="caption21" class="cell_1" style="left:593px; top:306px; width:71px; height:23px; vertical-align:middle; ">적용년도</caption>
  408. <line id="line35" class="line_1" style="x1:5px; y1:302px; x2:1185px; y2:302px; "/>
  409. <caption id="caption54" class="cell_1" style="left:5px; top:356px; width:91px; height:23px; vertical-align:middle; ">비고</caption>
  410. <button id="btn_selinsucorpbrchcd" class="icon_search" style="left:205px; top:332px; width:16px; height:16px; ">
  411. <caption/>
  412. <script type="javascript" ev:event="DOMActivate">
  413. <![CDATA[
  414. fGetComnCd("SMAHB00500", "02" , "cd", ipt_insucorpbrchcd.value ,ipt_insucorpbrchcd.attribute("ref"), opt_insucorpbrchnm.attribute("ref"));
  415. //fPupComnCd("B002" , "nm", opt_insucorpbrchnm.value , "건강보험지사조회", ipt_insucorpbrchcd.attribute("ref"), opt_insucorpbrchnm.attribute("ref"));
  416. fMoveFocus("ipt_prsdrrgstno");
  417. ]]>
  418. </script>
  419. </button>
  420. <button id="btn_addbiz" class="btn2_letter3" style="left:1074px; top:385px; width:53px; height:19px; ">
  421. <caption>행추가</caption>
  422. <script type="javascript" ev:event="DOMActivate">
  423. <![CDATA[
  424. var cmpyId = model.getValue("/root/send/cmpyinfo/appyear");
  425. var appYear = model.getValue("/root/send/cmpyinfo/cmpyid");
  426. // 사업체 ID
  427. if(cmpyId == "") {
  428. messageBox("사업장관리번호를" , "C001");
  429. return;
  430. }
  431. // 적용년도
  432. if(appYear == "") {
  433. messageBox("적용년도를" , "C002");
  434. return;
  435. }
  436. var addRow = fAddGrdReturnRow(grd_bizlst);
  437. // 사용상태 default Y 처리
  438. grd_bizlst.valueMatrix(addRow , grd_bizlst.colRef("bizoffcstat")) = "Y";
  439. ]]>
  440. </script>
  441. </button>
  442. <input id="ipt_cmpynm" ref="/root/main/cmpyinfo/cmpyinfodetl/item/cmpynm" class="input_essential" navindex="2" maxlength="50" style="left:202px; top:308px; width:389px; height:19px; ">
  443. <script type="javascript" ev:event="onkeyup">
  444. <![CDATA[
  445. fMoveFocus("ipt_cmpyid");
  446. ]]>
  447. </script>
  448. </input>
  449. <line id="line15" class="line_3" style="x1:6px; y1:379px; x2:1186px; y2:379px; "/>
  450. <line id="line38" class="line_2" style="x1:5px; y1:374px; x2:1185px; y2:374px; "/>
  451. <input id="ipt_cmpycd" ref="/root/main/cmpyinfo/cmpyinfodetl/item/cmpyid" class="input_essential" navindex="1" imemode="alpha" maxlength="11" style="left:99px; top:308px; width:100px; height:19px; ">
  452. <script type="javascript" ev:event="onkeyup">
  453. <![CDATA[
  454. if( event.keyCode == 13 ){
  455. var cmpyId = ipt_cmpycd.currentText;
  456. var appYear = model.getValue("/root/main/cmpyinfo/cmpyinfodetl/item/appyear");
  457. if(appYear == "") {
  458. messageBox("적용년도를","C002");
  459. return;
  460. }
  461. model.resetInstanceNode("/root/send/cmpyinfo");
  462. model.makeValue("/root/send/cmpyinfo/cmpyid" , cmpyId);
  463. model.makeValue("/root/send/cmpyinfo/appyear" , appYear);
  464. fGetCmpyInfo();
  465. fMoveFocus("ipt_cmpynm");
  466. }
  467. ]]>
  468. </script>
  469. <script type="javascript" ev:event="xforms-value-changed">
  470. <![CDATA[
  471. var cmpyId = ipt_cmpycd.currentText;
  472. var appYear = model.getValue("/root/main/cmpyinfo/cmpyinfodetl/item/appyear");
  473. if(appYear == "") {
  474. messageBox("적용년도를","C002");
  475. return;
  476. }
  477. model.resetInstanceNode("/root/send/cmpyinfo");
  478. model.makeValue("/root/send/cmpyinfo/cmpyid" , cmpyId);
  479. model.makeValue("/root/send/cmpyinfo/appyear" , appYear);
  480. fGetCmpyInfo();
  481. fMoveFocus("ipt_cmpynm");
  482. ]]>
  483. </script>
  484. </input>
  485. <caption id="caption57" class="cell_1" style="left:5px; top:307px; width:91px; height:23px; vertical-align:middle; ">사업장관리번호</caption>
  486. <caption id="caption58" class="cell_1" style="left:790px; top:306px; width:70px; height:23px; vertical-align:middle; ">민원실구분</caption>
  487. <caption id="caption49" class="cell_1" style="left:986px; top:307px; width:65px; height:23px; vertical-align:middle; ">사용상태</caption>
  488. <input id="ipt_remcnts" ref="/root/main/cmpyinfo/cmpyinfodetl/item/remcnts" class="input_default" navindex="7" style="left:99px; top:357px; width:1086px; height:19px; ">
  489. <script type="javascript" ev:event="onkeyup">
  490. <![CDATA[
  491. fMoveFocus("btn_addbiz");
  492. ]]>
  493. </script>
  494. </input>
  495. <line id="line5" class="line_2" style="x1:5px; y1:354px; x2:1185px; y2:354px; "/>
  496. <select1 id="cmb_appyear" ref="/root/main/cmpyinfo/cmpyinfodetl/item/appyear" navindex="3" appearance="minimal" style="left:667px; top:308px; width:120px; height:19px; ">
  497. <choices>
  498. <itemset nodeset="/root/init/baseinfo/yearlist/S900">
  499. <label ref="cdnm"/>
  500. <value ref="cdid"/>
  501. </itemset>
  502. </choices>
  503. </select1>
  504. <select1 id="cmb_cmpystat" ref="/root/main/cmpyinfo/cmpyinfodetl/item/cmpystat" navindex="5" appearance="minimal" style="left:1054px; top:308px; width:131px; height:19px; ">
  505. <choices>
  506. <item>
  507. <label>사용</label>
  508. <value>Y</value>
  509. </item>
  510. <item>
  511. <label>미사용</label>
  512. <value>N</value>
  513. </item>
  514. </choices>
  515. </select1>
  516. <select1 id="combo3" ref="/root/main/cmpyinfo/cmpyinfodetl/item/civilaplflag" navindex="4" appearance="minimal" style="left:863px; top:308px; width:120px; height:19px; ">
  517. <choices>
  518. <item>
  519. <label>0</label>
  520. <value>0</value>
  521. </item>
  522. <item>
  523. <label>1</label>
  524. <value>1</value>
  525. </item>
  526. </choices>
  527. </select1>
  528. <caption id="caption1" class="tit_2" style="left:5px; top:390px; width:82px; height:13px; ">영업소</caption>
  529. <line id="line1" class="line_1" style="x1:5px; y1:405px; x2:1185px; y2:405px; "/>
  530. <datagrid id="grd_bizlst" nodeset="/root/main/cmpyinfo/cmpyinfodetl/bizlst" caption="영업소코드^영업소명^전화번호^우편번호^우편번호^zipcdseq^주소^주소^근로자수^근로자수^근로자수^대상자수^대상자수^대상자수^사무직대상자수^사무직대상자수^사무직대상자수^비사무직대상자수^비사무직대상자수^비사무직대상자수^노동청코드^노동청명^산재번호^업종코드^업종명^군관할병원코드^군관할병원명^대표자성명^대표자주민번호^대표자주민번호^사업자등록번호^사용상태|영업소코드^영업소명^전화번호^우편번호^우편번호^zipcdseq^주소^주소^남^여^총^남^여^총^남^여^총^남^여^총^노동청코드^노동청명^산재번호^업종코드^업종명^군관할병원코드^군관할병원명^대표자성명^대표자주민번호^대표자주민번호^사업자등록번호^사용상태" colsep="^" colwidth="98, 147, 100, 50, 50, 100, 150, 250, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:410px; width:1180px; height:165px; ">
  531. <col disabled="true" ref="bizoffccd" type="input" maxlength="6"/>
  532. <col ref="bizoffcnm" type="input"/>
  533. <col ref="telno" type="input"/>
  534. <col ref="zipcd1" type="input" format="999" maxlength="3"/>
  535. <col ref="zipcd2" type="inputbutton" format="999" maxlength="3"/>
  536. <col ref="zipcdseq" visibility="hidden"/>
  537. <col ref="addr"/>
  538. <col ref="detladdr" type="input"/>
  539. <col ref="totlabrmancnt" type="input" format="9999999999"/>
  540. <col ref="totlabrwomcnt" type="input" format="9999999999"/>
  541. <col ref="totlabrcnt"/>
  542. <col ref="tottrgtmancnt" type="input" format="9999999999"/>
  543. <col ref="tottrgtwomcnt" type="input" format="9999999999"/>
  544. <col ref="tottrgtcnt"/>
  545. <col ref="officertrgtmancnt" type="input" format="9999999999"/>
  546. <col ref="officertrgtwomcnt" type="input" format="9999999999"/>
  547. <col ref="officertrgtcnt"/>
  548. <col ref="nonofficertrgtmancnt" type="input" format="9999999999"/>
  549. <col ref="nonofficertrgtwomcnt" type="input" format="9999999999"/>
  550. <col ref="nonofficertrgtcnt"/>
  551. <col ref="minilabrcd" type="inputbutton"/>
  552. <col ref="minilabrnm"/>
  553. <col ref="inducsid" type="input" maxlength="20"/>
  554. <col ref="biztype" type="inputbutton"/>
  555. <col ref="biztypenm"/>
  556. <col ref="miltrcntrhospcd" type="inputbutton"/>
  557. <col ref="miltrcntrhospnm"/>
  558. <col ref="prsdnm" type="input"/>
  559. <col ref="prsdrrgstno1" type="input" format="999999" maxlength="6"/>
  560. <col ref="prsdrrgstno2" type="input" format="9999999" maxlength="7"/>
  561. <col ref="cmpyno" type="input" maxlength="10"/>
  562. <col checkvalue="Y,N" ref="bizoffcstat" type="checkbox"/>
  563. <script type="javascript" ev:event="onbuttonclick">
  564. <![CDATA[
  565. var idx = grd_bizlst.row;
  566. var addRow = idx - 1;
  567. var orgData = "";
  568. if(grd_bizlst.col == grd_bizlst.colRef("minilabrcd")) {
  569. orgData = grd_bizlst.valueMatrix(idx , grd_bizlst.colRef("minilabrcd"));
  570. fGetComnCd("SMAHB00500", "06" , "nm", grd_bizlst.valueMatrix(idx, grd_bizlst.colRef("minilabrcd")) ,grd_bizlst.nodeset + "[" + addRow + "]/minilabrcd", grd_bizlst.nodeset + "[" + addRow + "]/minilabrnm" );
  571. if(orgData != grd_bizlst.valueMatrix(idx , grd_bizlst.colRef("minilabrcd"))) {
  572. fSetGrdUpdate(grd_bizlst,idx);
  573. }
  574. }else if(grd_bizlst.col == grd_bizlst.colRef("miltrcntrhospcd")) {
  575. orgData = grd_bizlst.valueMatrix(idx , grd_bizlst.colRef("miltrcntrhospcd"));
  576. fGetComnCd("SMAHB00500", "03" , "cd", grd_bizlst.valueMatrix(idx, grd_bizlst.colRef("miltrcntrhospcd")),grd_bizlst.nodeset + "[" + addRow + "]/miltrcntrhospcd", grd_bizlst.nodeset + "[" + addRow + "]/miltrcntrhospnm" );
  577. if(orgData != grd_bizlst.valueMatrix(idx , grd_bizlst.colRef("miltrcntrhospcd"))) {
  578. fSetGrdUpdate(grd_bizlst,idx);
  579. }
  580. }else if(grd_bizlst.col == grd_bizlst.colRef("biztype")){
  581. orgData = grd_bizlst.valueMatrix(idx , grd_bizlst.colRef("biztype"));
  582. fGetComnCd("SMAHB00500", "09" , "cd", grd_bizlst.valueMatrix(idx, grd_bizlst.colRef("biztype")) , grd_bizlst.nodeset + "[" + addRow + "]/biztype", grd_bizlst.nodeset + "[" + addRow + "]/biztypenm");
  583. if(orgData != grd_bizlst.valueMatrix(idx , grd_bizlst.colRef("biztype"))) {
  584. fSetGrdUpdate(grd_bizlst,idx);
  585. }
  586. }else if(grd_bizlst.col == grd_bizlst.colRef("zipcd2")) {
  587. zbcfOpenZipCodeList("combination", "", "/root/temp/addr/zipcd1", "/root/temp/addr/zipcd2", "/root/temp/addr/zipcdseq", "/root/temp/addr/addr");
  588. var node =model.getValue("/root/temp/addr/zipcd1");
  589. if( node != "" ){
  590. model.setValue(grd_bizlst.nodeset + "[" + addRow + "]/zipcd1" , model.getValue("/root/temp/addr/zipcd1") );
  591. model.setValue(grd_bizlst.nodeset + "[" + addRow + "]/zipcd2" , model.getValue("/root/temp/addr/zipcd2") );
  592. model.setValue(grd_bizlst.nodeset + "[" + addRow + "]/zipcdseq" , model.getValue("/root/temp/addr/zipcdseq") );
  593. model.setValue(grd_bizlst.nodeset + "[" + addRow + "]/addr" , model.getValue("/root/temp/addr/addr") );
  594. fSetGrdUpdate(grd_bizlst,idx);
  595. }
  596. }
  597. ]]>
  598. </script>
  599. <script type="javascript" ev:event="ondblclick">
  600. <![CDATA[
  601. if(isDataCell()) {
  602. model.makeValue("/root/send/cmpyinfo/bizoffccd" , grd_bizlst.valueMatrix(grd_bizlst.row , grd_bizlst.colRef("bizoffccd")));
  603. fGetCmpyBizDeptList();
  604. }
  605. ]]>
  606. </script>
  607. <script type="javascript" ev:event="onclick">
  608. <![CDATA[
  609. if(grd_bizlst.colType(grd_bizlst.col) == "input") {
  610. grd_bizlst.editCell();
  611. }
  612. ]]>
  613. </script>
  614. </datagrid>
  615. <caption id="caption2" class="tit_2" style="left:5px; top:585px; width:82px; height:14px; ">부서</caption>
  616. <line id="line2" class="line_1" style="x1:5px; y1:600px; x2:1185px; y2:600px; "/>
  617. <button id="button2" class="btn2_letter3" style="left:1130px; top:580px; width:53px; height:19px; ">
  618. <caption>행삭제</caption>
  619. <script type="javascript" ev:event="DOMActivate">
  620. <![CDATA[
  621. deleteSelectedRows(grd_deptlst,true);
  622. ]]>
  623. </script>
  624. </button>
  625. <button id="button4" class="btn2_letter3" style="left:1074px; top:580px; width:53px; height:19px; ">
  626. <caption>행추가</caption>
  627. <script type="javascript" ev:event="DOMActivate">
  628. <![CDATA[
  629. var cmpyId = model.getValue("/root/send/cmpyinfo/cmpyid");
  630. var appYear = model.getValue("/root/send/cmpyinfo/appyear");
  631. var bizOffcCd = grd_bizlst.valueMatrix(grd_bizlst.row , grd_bizlst.colRef("bizoffccd"));
  632. var bizOffcNm = grd_bizlst.valueMatrix(grd_bizlst.row , grd_bizlst.colRef("bizoffcnm"));
  633. // 사업체 ID
  634. if(cmpyId == "") {
  635. messageBox("사업장관리번호를" , "C001");
  636. return;
  637. }
  638. // 적용년도
  639. if(appYear == "") {
  640. messageBox("적용년도를" , "C002");
  641. return;
  642. }
  643. // 영업소코드
  644. if(bizOffcCd == "") {
  645. messageBox("영업소코드를" , "C001");
  646. return;
  647. }
  648. var addRow = fAddGrdReturnRow(grd_deptlst);
  649. grd_deptlst.valueMatrix(addRow , grd_deptlst.colRef("bizoffccd"))= bizOffcCd;
  650. grd_deptlst.valueMatrix(addRow , grd_deptlst.colRef("bizoffcnm"))= bizOffcNm;
  651. grd_deptlst.valueMatrix(addRow , grd_deptlst.colRef("deptstat"))= "Y";
  652. ]]>
  653. </script>
  654. </button>
  655. <datagrid id="grd_deptlst" nodeset="/root/main/cmpyinfo/deptlst/item" caption="영업소코드^영업소명^부서코드^부서명^사용상태" colsep="^" colwidth="100, 150, 149, 549, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:605px; width:1180px; height:128px; ">
  656. <col ref="bizoffccd"/>
  657. <col ref="bizoffcnm"/>
  658. <col disabled="true" ref="deptcd" type="input" maxlength="7"/>
  659. <col ref="deptnm" type="input"/>
  660. <col checkvalue="Y,N" ref="deptstat" type="checkbox"/>
  661. </datagrid>
  662. <select1 id="cmb_srchappyear" ref="/root/send/srchappyear" appearance="minimal" style="left:97px; top:18px; width:135px; height:19px; ">
  663. <choices>
  664. <itemset nodeset="/root/init/baseinfo/yearlist/S900">
  665. <label ref="cdnm"/>
  666. <value ref="cdid"/>
  667. </itemset>
  668. </choices>
  669. </select1>
  670. <button id="button1" class="btn2_letter2" style="left:1142px; top:49px; width:42px; height:19px; ">
  671. <caption>엑셀</caption>
  672. <script type="javascript" ev:event="DOMActivate">
  673. <![CDATA[
  674. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  675. if (fileName != "")
  676. {
  677. grd_cmpylst.saveExcel(fileName, "사업체리스트", true, true, "", "", false);
  678. }
  679. ]]>
  680. </script>
  681. </button>
  682. <datagrid id="grd_cmpylst" nodeset="/root/main/cmpyinfo/cmpyinfolst/item" caption="적용년도^사업장관리번호^사업장명^건강보험지사^건강보험지사명^민원실구분^사용상태^비고" colsep="^" colwidth="80, 100, 150, 100, 150, 100, 50, 400" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:74px; width:1180px; height:204px; ">
  683. <col disabled="true" ref="appyear" type="combo">
  684. <choices>
  685. <itemset nodeset="/root/init/baseinfo/yearlist/S900">
  686. <label ref="cdnm"/>
  687. <value ref="cdid"/>
  688. </itemset>
  689. </choices>
  690. </col>
  691. <col ref="cmpyid"/>
  692. <col ref="cmpynm"/>
  693. <col ref="insucorpbrchcd"/>
  694. <col ref="insucorpbrchnm"/>
  695. <col disabled="true" ref="civilaplflag" type="combo">
  696. <choices>
  697. <item>
  698. <label>0</label>
  699. <value>0</value>
  700. </item>
  701. <item>
  702. <label>1</label>
  703. <value>1</value>
  704. </item>
  705. </choices>
  706. </col>
  707. <col checkvalue="Y,N" disabled="true" ref="cmpystat" type="checkbox"/>
  708. <col ref="remcnts"/>
  709. <script type="javascript" ev:event="ondblclick">
  710. <![CDATA[
  711. model.copyNode( "/root/send/cmpyinfo" , grd_cmpylst.nodeset + "[" + grd_cmpylst.row + "]");
  712. fGetCmpyInfo();
  713. ]]>
  714. </script>
  715. </datagrid>
  716. <line id="line36" class="line_1" style="x1:5px; y1:69px; x2:1185px; y2:69px; "/>
  717. <caption id="caption69" class="tit_2" style="left:5px; top:54px; width:95px; height:13px; ">사업체리스트</caption>
  718. </group>
  719. </xhtml:body>
  720. </xhtml:html>